package org.example.ymcc.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "t_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;
    @TableField(value = "username")
    private String username;
    private String password;
    private Integer age;
    @TableField(exist = false)//排除
    private List<Employee> employees;
}
